import request from '@/utils/request'

// 查询号码列表
export function listTel(query) {
  return request({
    url: '/hmk/tel/list',
    method: 'get',
    params: query
  })
}

// 查询号码详细
export function getTel(id) {
  return request({
    url: '/hmk/tel/' + id,
    method: 'get'
  })
}

export function selectRxTelByTel(tel) {
  return request({
    url: '/hmk/tel/selectRxTelByTel/' + tel,
    method: 'get'
  })
}

// 新增号码
export function addTel(data) {
  return request({
    url: '/hmk/tel',
    method: 'post',
    data: data
  })
}

// 修改号码
export function updateTel(data) {
  return request({
    url: '/hmk/tel',
    method: 'put',
    data: data
  })
}

// 删除号码
export function delTel(id) {
  return request({
    url: '/hmk/tel/' + id,
    method: 'delete'
  })
}
